//
//  CustomBlueListView.m
//  TY_MotorRemoteControl
//
//  Created by dfwx on 2019/6/24.
//  Copyright © 2019 xuweixin. All rights reserved.
//

#import "CustomBlueListView.h"

@interface CustomBlueListView()


@end

@implementation CustomBlueListView
-(void)awakeFromNib{
    [super awakeFromNib];
    self.selectLabel.text = NSLocalizedString(@"selectEquipment",@"设备选择");
    [self.closeButton setTitle:NSLocalizedString(@"CLOSE",@"设备选择") forState:UIControlStateNormal];
    self.blankLabel.text = NSLocalizedString(@"blankTips", @"blankTips");
}


- (IBAction)backButtonClicked:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(CustomBlueListViewCloseButtonClickAction)]) {
        [self.delegate CustomBlueListViewCloseButtonClickAction];
    }}

- (IBAction)scanButtonClicked:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(CustomBlueListViewStopScanButtonClickActionWithSender:)]) {
        [self.delegate CustomBlueListViewStopScanButtonClickActionWithSender:sender];
    }
    
}

- (IBAction)closeButtonCLicked:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(CustomBlueListViewCloseButtonClickAction)]) {
        [self.delegate CustomBlueListViewCloseButtonClickAction];
    }
//    self.hidden = YES;
}

@end
